const express = require("express")
const router = express.Router() //引入express框架的Router
const user = require("../controller/userController")

//拦截/login.do请求
 //回调函数使用user自定义模块（userController）的userLogin方法
// router.get("/login.do",user.userLogin)
router.get("/user.do",user.getUserInfo)
router.get("/api/getUserInfo",user.getUserInfo)
router.post("/login.do",user.userLogin)

router.post("/signin.do",user.userSignin)
router.post("/reset.do",user.userReset)
router.post("/remove.do",user.userRemove)

module.exports = router;